<template>
  <div id="app">
    <router-view/>
    <van-tabbar v-model="this.$route.meta.num"  v-if="this.$route.meta.showTab"  >
      <van-tabbar-item  icon="send-gift" replace to="/" >首页</van-tabbar-item>
      <van-tabbar-item icon="cluster" replace to="/class" >分类</van-tabbar-item>
      <van-tabbar-item icon="cart" replace to="/car" >购物车</van-tabbar-item>
      <van-tabbar-item icon="manager" replace to="/user" >我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return{};
  },
  created() {
    //加载地址列表
    let addresslist=JSON.parse(localStorage.getItem('addresslist'))
    if(addresslist!=null){
      this.$store.state.address.addresList=addresslist;
    }
  },
};
</script>
<style lang="less">

</style>
